<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>页面修改</title>
<link rel="stylesheet" href="css/bootstrap.min.css" />
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>

</head>

<body>

	<div id="drugAlter">
		<h4>药品 修改 页面</h4>
		<form class="form-horizontal" action="updateDrugByDrid2.do" method="post">
			<div class="form-group">
				<label for="drid" class="col-sm-2 control-label">ID</label>
				<div class="col-sm-10">
					<input type="hidden" name="drid" id="drid" value="${drug.drid }">
					<input type="test" class="form-control" disabled="disabled" name="drid2" id="drid2" value="${drug.drid }"
						placeholder="清输入ID">
				</div>
			</div>
			<div class="form-group">
				<label for="drname" class="col-sm-2 control-label">药名</label>
				<div class="col-sm-10">
					<input type="textarea" class="form-control" name="drname" value="${drug.drname }"
						id="drname" placeholder="清输入药名">
				</div>
			</div>
			<div class="form-group">
				<label for="drprice" class="col-sm-2 control-label">价格</label>
				<div class="col-sm-10">
					<input type="test" class="form-control" name="drprice" id="drprice" value="${drug.drprice }"
						placeholder="清输入价格">
				</div>
			</div>
			<div class="form-group">
				<label for="drnum" class="col-sm-2 control-label">库存</label>
				<div class="col-sm-10">
					<input type="test" class="form-control" name="drnum" id="drnum" value="${drug.drnum }"
						placeholder="清输入数量">
				</div>
			</div>
			<div class="form-group">
				<label for="drstart" class="col-sm-2 control-label">生产日期</label>
				<div class="col-sm-10">
					<input type="test" class="form-control" name="drstart" id="drstart" value="${drug.drstart }"
						placeholder="清输入生产日期">
				</div>
			</div>
			<div class="form-group">
				<label for="drstop" class="col-sm-2 control-label">过期日期</label>
				<div class="col-sm-10">
					<input type="test" class="form-control" name="drstop" id="drstop" value="${drug.drstop }"
						placeholder="清输入过期时间">
				</div>
			</div>
		
			

			<div class="form-group">
				<label for="petYiMiao" class="col-sm-2 control-label">种类</label>
				<div class="col-sm-10" id="petYiMiao">
					<select name="type.tid"  class="form-control">
						<option <c:if test="${drug.type.tid == 1}">selected="true"</c:if> value="1">感冒类</option>
						<option <c:if test="${drug.type.tid == 2}">selected="true"</c:if> value="2">消炎解毒类</option>
						<option <c:if test="${drug.type.tid == 3}">selected="true"</c:if> value="3">维生素类</option>
						<option <c:if test="${drug.type.tid == 4}">selected="true"</c:if> value="4">小儿科类</option>
						<option <c:if test="${drug.type.tid == 5}">selected="true"</c:if> value="5">消化类</option>
						<option <c:if test="${drug.type.tid == 6}">selected="true"</c:if> value="6">中成药类</option>
						<option <c:if test="${drug.type.tid == 7}">selected="true"</c:if> value="7">外用类</option>
						
					</select>
				</div>
			</div>
			<%-- <div class="form-group">
				<label for="type" class="col-sm-2 control-label">供货商</label>
				<div class="col-sm-10" id="type">
					<select name="supp.pid" class="form-control">
						<option <c:if test="${drug.supp.pid == 1}">selected="true"</c:if> value="1">遵义市意通医药有限责任公司</option>
						<option <c:if test="${drug.supp.pid == 2}">selected="true"</c:if> value="2">贵州鼎圣药业有限公司</option>
						<option <c:if test="${drug.supp.pid == 3}">selected="true"</c:if> value="3">铜仁梵天药业有限公司</option>
						<option <c:if test="${drug.supp.pid == 4}">selected="true"</c:if> value="4">国药控股贵州有限公司</option>
						<option <c:if test="${drug.supp.pid == 5}">selected="true"</c:if> value="5">广西梧州制药(集团)股份有限公司</option>
						<option <c:if test="${drug.supp.pid == 6}">selected="true"</c:if> value="6">飞利浦医疗</option>
						<option <c:if test="${drug.supp.pid == 7}">selected="true"</c:if> value="7">罗氏诊断</option>
						<option <c:if test="${drug.supp.pid == 8}">selected="true"</c:if> value="8">西门子</option>
						<option <c:if test="${drug.supp.pid == 9}">selected="true"</c:if> value="9">美敦力</option>
					</select>
				</div>
			</div> --%>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-info">修改</button>
				</div>
			</div>
		</form>
	</div>
</body>
</html>